
#ifndef M_LEVEL_H__
#define M_LEVEL_H__




namespace tclog {
    class LogLevel{
        public:
            enum class value{
                UNKNOWN=0,
                DEBUG,
                INFO,
                WARN,
                ERROR,
                FATAL,
                OFF
            };
            static const char *toString(LogLevel::value va){
                switch(va){
                    case LogLevel::value::DEBUG: return "DEBUG";
                    case LogLevel::value::INFO: return "INFO";
                    case LogLevel::value::WARN: return "WARN";
                    case LogLevel::value::ERROR: return "ERROR";
                    case LogLevel::value::FATAL: return "FATAL";
                    case LogLevel::value::OFF: return "OFF";
                }

                return "UNKNOWN";
            }
    };
}

#endif